package com.dong.service;

import com.dong.mapper.ImageMapper;
import com.dong.pojo.Image;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class QueryImageServiceImpl implements QueryImageService {

    @Autowired
    ImageMapper imageMapper;

    @Override
    public int insertImage(Image image) {
        return imageMapper.insertImage(image);
    }

    @Override
    public Image getImage() {
        return imageMapper.getImage();
    }
}
